<?php
/*
 * +------------------------------------------------------------------------+
 * | Leaps Framework |
 * +------------------------------------------------------------------------+
 * | Copyright (c) 2011-2014 Leaps Team (http://www.tintsoft.com) |
 * +------------------------------------------------------------------------+
 * | This source file is subject to the Apache License that is bundled |
 * | with this package in the file docs/LICENSE.txt. |
 * | |
 * | If you did not receive a copy of the license and are unable to |
 * | obtain it through the world-wide-web, please send an email |
 * | to license@tintsoft.com so we can send you a copy immediately. |
 * +------------------------------------------------------------------------+
 * | Authors: XuTongle <xutongle@gmail.com> |
 * +------------------------------------------------------------------------+
 */
// 记录开始运行时间
define ( 'START_TIME', microtime ( true ) );
// 记录内存初始使用
defined ( 'START_MEM' ) or define ( 'START_MEM', memory_get_usage () );

if (!extension_loaded('leaps')) {
	echo '未加载Leaps扩展模块';
}
//if (file_exists ( __DIR__ . '/Vendor/autoload.php' )) {
	require dirname(__DIR__) . '/vendor/autoload.php';
//}

// Register the autoloader
spl_autoload_register ( [ '\Leaps\Kernel','autoload' ], true, true );

/**
 * Your environment.
 * Can be set to any of the following:
 *
 * \Leaps\Kernel::DEVELOPMENT
 * \Leaps\Kernel::TEST
 * \Leaps\Kernel::STAGING
 * \Leaps\Kernel::PRODUCTION
*/
\Leaps\Kernel::$env = (isset ( $_SERVER ['LEAPS_ENV'] ) ? $_SERVER ['LEAPS_ENV'] : Leaps\Kernel::DEVELOPMENT);
//\Leaps\Kernel::$classMap = include(__DIR__ . '/classes.php');